﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddMajor.aspx.cs" Inherits="Web.admin.BasicManage.Majors.AddMajor"  ValidateRequest="false"  %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <script src="../../js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../../js/function.js" type="text/javascript"></script>
    <link href="../../css/style.css" rel="stylesheet" type="text/css" />
    <script src="../../js/jquery.validate.min.js" type="text/javascript"></script>
     <script src="../../tool/editor/kindeditor.js" type="text/javascript"></script>
    <script src="../../tool/editor/lang/zh_CN.js" type="text/javascript"></script>
    <script src="../../js/WebCalendar.js" type="text/javascript"></script>
    <script type="text/javascript">
        var editor;
        KindEditor.ready(function (K) {
            editor = K.create('#KindEditor', {
                width: '750px', height: '330px',
                items: [
                     'preview', 'print', 'template', 'fullscreen', '|', 'justifyleft', 'justifycenter', 'justifyright', 'justifyfull'
                     , '|', 'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline', 'strikethrough',
                      'lineheight', 'removeformat', '|', 'image', 'multiimage', 'insertfile', 'table', 'hr', 'link', 'unlink', '|'
                ],
                uploadJson: '../../editor/asp.net/upload_json.ashx',
                fileManagerJson: '../../editor/asp.net/file_manager_json.ashx',
                allowFileManager: true
            });
        });
        $(function () {
            $("#Cb_url").bind("click", function () {
                if ($(this).attr("checked") == true) {
                    $(".upordown").show();
                } else {
                    $(".upordown").hide();
                }
            });
        });
    </script>
     <script type="text/javascript" language="javascript" >
         function CheckEmpty() {

             if ($(".class3").val() == "") {
                 alert("专业名称为必填项，不允许为空");
                 return false;
             }
             else if ($(".class4").val() == "") {
                 alert("专业号为必填项，不允许为空");
                 return false;
             }
             else
                 return true;
         };
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="top_div">
        <div class="top_div_left" >
                <table>
                    <tr >
                        <td ><img  alt=""; src="../../images/main_hl.gif" /></td>
                        <td ><img alt=""; src="../../images/main_hl2.gif" /></td>
                        <td class="topNav"><span>专业管理</span></td>
                        <td><img alt=""; src="../../images/main_hr.gif" /></td>
                    </tr>
                </table>
        </div>
    </div>
     <div class="middle_div">
        <div class="middle_left"></div>
        <div class="middle_middle">
            <div class="navigation"><span>首页&gt;基础数据管理&gt;专业管理</span>
            <div style="float:right; margin-right:5px;">
                    <a href="MajorList.aspx">返回专业列表>></a>
                </div>
            </div>
            <div class="submitTable">
                <table >
                    <tr>
                        <th>专业名称</th>
                        <td align="left">
                            <asp:TextBox ID="TextBoxName" CssClass="class3" runat="server"></asp:TextBox>
                            <label>*</label>
                            <input type="hidden" id="MajorIdBOX" value="" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <th>专业号</th>
                        <td align="left">
                            <asp:TextBox ID="TextBoxCode" CssClass="class4" runat="server"></asp:TextBox>    
                            <label>*</label>                        
                        </td>
                    </tr>
                    <tr>
                        <th>专业简称</th>
                        <td align="left">
                            <asp:TextBox ID="TextBoxShort" runat="server"></asp:TextBox>                            
                        </td>
                    </tr>
                    <tr>
                        <th>专业英文名称</th>
                        <td align="left">
                            <asp:TextBox ID="TextBoxEnName" runat="server"></asp:TextBox>                            
                        </td>
                    </tr>
                    
                    <tr>
                        <th>学科门类</th>
                        <td align="left">
                            <asp:TextBox ID="TextBoxCLASSIFICATION" runat="server"></asp:TextBox>                            
                        </td>
                    </tr>
                    
                    <tr>
                        <th>专业负责人</th>
                        <td align="left">
                            <asp:TextBox ID="TextBoxTEACHER"  runat="server"></asp:TextBox>                            
                        </td>
                    </tr>
                   <tr>
                        <th>专业简介</th>
                        <td align="left">
                            <asp:TextBox ID="KindEditor" TextMode="MultiLine" runat="server"></asp:TextBox>                            
                        </td>
                    </tr>
                    <tr>
                        <th>备注</th>
                        <td align="left">
                            <asp:TextBox ID="TextBoxRemark" runat="server"></asp:TextBox>                            
                        </td>
                    </tr>
                    <tr>
                        <th>所属校区</th>
                        <td align="left">
                            <asp:DropDownList ID="localList"   runat="server" Width="155px">
                                
                            </asp:DropDownList>                           
                        </td>
                    </tr>     
                   <tr>
                        <th>所属学院</th>
                        <td align="left">
                            <asp:DropDownList ID="ACA_List"  runat="server" Width="155px">
                                
                            </asp:DropDownList>                           
                        </td>
                    </tr>                 
                    <tr>
                        <td></td>
                        <td align="left"><asp:Button ID="ButtonOK" OnClientClick="return CheckEmpty();" CssClass="btn_reset" runat="server" Text="保存" 
                                onclick="ButtonOK_Click" /></td>
                    </tr>
                </table>
            </div>
        </div>
     </div>
    </form>
</body>
</html>
